
Chapter 10. Ghostly, Shapely Windows
Hack 10.8: LAFWin/

From:
   Windows Programming Using Java
   Gayathri Singh and Andrew Davison

Contacts: 
  Gayathri Singh
  support@jinvoke.com 

and

  Andrew Davison
  Dept. of Computer Engineering
  Prince of Songkla University
  Hat Yai, Songkhla 90112, Thailand
  E-mail: ad@fivedots.coe.psu.ac.th

  Web Site for the book:
     http://fivedots.coe.psu.ac.th/~ad/winJava/


If you use this code, please mention our names, and include links
to the book's Web site.

Thanks,
  Gayathri and Andrew


============================
Hack 10.8: LAFWin/

The files and directories are: 

* LAFWin.java

* runLAFWin.bat   
     // batch file for the examples;
     // it utilizes the Substance and Napkin L&Fs (see below)



------
Compilation and Execution
=========================

> javac LAFWin.java


> java LAFWin [ < 0, 1, or 2 > ]

          0 --> LAFWin uses the native L&F
          1 --> Java L&F
          2 --> Motif L&F
        Any other number is ignored, and the Java L&F is used


> runLAFWin  [ < 3, 4, or 5 > ]

         3 --> LAFWin uses the skinnable Substance L&F  (requires Substance, see below)
         4 --> Substance Office Silver 2007 L&F  (requires Substance, see below)
         5 --> Napkin L&F  (requires Napkin, see below)

e.g.
> run runLAFWin 4



-------
Substance

Substance is a highly customizable L&F, developed by Kirill Grouchnikov, and 
freely available from https://substance.dev.java.net/. 

Download the latest Substance runtime library, substance.jar, 
and save it in a new directory. runLAFWin.bat assumes the directory is
d:\lafs\substance\


-------
Napkin

Napkin is a unique L&F that make the GUI look like it was quickly 
scrawled on a napkin. It was developed by Ken Arnold and Alex Lam, and 
is freely available from http://napkinlaf.sourceforge.net/. 

Download the latest napkinlaf-jars-XXX.zip file (XXX is the version number), 
unzip it, and save napkinlaf.jar in a new directory. runLAFWin.bat assumes 
the directory is d:\lafs\napkin\ 

---------
Last updated: 13th June 2008
